package com.ocom.common.entity.company;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "com_dock_api")
public class EntityComDockApi implements Serializable {

    private static final long serialVersionUID = -2536625639945702508L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Long comId;
    private String dockCode;
    private String dockApiCode;
    private Integer apiPermission;
    private Integer autoCycle;
    private Integer autoSize;
    private String apiPara;

    @TableField(exist = false)
    private String apiName;

    @TableField(exist = false)
    private String key;

    @Override
    public String toString() {
        return "EntityComDockApi{" +
                "id=" + id +
                ", comId=" + comId +
                ", dockCode='" + dockCode + '\'' +
                ", dockApiCode='" + dockApiCode + '\'' +
                ", apiPermission=" + apiPermission +
                ", autoCycle=" + autoCycle +
                ", autoSize=" + autoSize +
                ", apiPara='" + apiPara + '\'' +
                ", apiName='" + apiName + '\'' +
                ", key='" + key + '\'' +
                '}';
    }
}
